<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="{% url 'tmp:image_filed' %}" method="post" enctype="multipart/form-data">
    {% csrf_token %}
    <span>用户</span> <input type="text" name="username" placeholder="请输入用户名"><br>
    <span>头像</span> <input type="file" name="icon">
    <br>
    <button>上传</button>
</form>
</body>
</html>